﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraGrid.Localization;

namespace Share
{
    public class Globals
    {
        public static string FORMAT_DATE = "dd/MM/yyyy";
        public static string FORMAT_NUMBER = "N0";

        public static readonly int DEFAULT_SLEEPTIME = 100;
    }

    public class MyGridLocalizer : GridLocalizer
    {
        public override string Language { get { return "Deutsch"; } }
        public override string GetLocalizedString(GridStringId id)
        {
            string ret = "";
            switch (id)
            {
                // ... 
                case GridStringId.FindControlClearButton: return "Xóa";
                // ... 
                case GridStringId.FindControlFindButton: return "Tìm kiếm";
                default:
                    ret = "";
                    break;
            }
            return ret;
        }
    }
}
